package com.zpark.servicer.impl;

import com.zpark.dao.IUserDao;
import com.zpark.pojo.User;
import com.zpark.servicer.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PackageName: com.zpark.servicer.impl
 * @ClassName: UserServiceImpl
 * @Description:
 * @author: RZS
 * @date: 2023/4/11  17:18
 */
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserDao userDao;

    @Override
    public List<User> findAll() {
        return userDao.selectAll();
    }

    @Override
    public void addUser(User user) {
        userDao.insertUser(user);
    }
}
